package com.after.saas.system.service.impl;

import com.after.saas.common.model.query.CommonQuery;
import com.after.saas.common.model.vo.AlipayRecordVO;

import com.after.saas.system.mapper.AlipayRecordMapper;
import com.after.saas.system.model.AlipayRecord;
import com.after.saas.system.service.AlipayRecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author hjchen
 * @since 2021-07-17
 */
@Service
public class AlipayRecordServiceImpl extends ServiceImpl<AlipayRecordMapper, AlipayRecord> implements AlipayRecordService {

    @Autowired
    private AlipayRecordMapper alipayRecordMapper;

    @Override
    public List<AlipayRecordVO> getYearIncome() {
        return alipayRecordMapper.getYearIncome();
    }

    @Override
    public List<AlipayRecordVO> getYearExpend() {
        return alipayRecordMapper.getYearExpend();
    }

    @Override
    public List<AlipayRecordVO> getYear(CommonQuery query) {
        return alipayRecordMapper.getYear(query);
    }

    @Override
    public List<AlipayRecordVO> getMonth(CommonQuery query) {
        return alipayRecordMapper.getMonth(query);
    }

    @Override
    public List<AlipayRecordVO> getMonthIncome(CommonQuery query) {
        return alipayRecordMapper.getMonthIncome(query);
    }

    @Override
    public List<AlipayRecordVO> getMonthExpend(CommonQuery query) {
        return alipayRecordMapper.getMonthExpend(query);
    }
}
